package com.startup.yellocar.dto;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name = "city")
@PrimaryKeyJoinColumn(name="id")
public class CityDTO extends LocalisationDTO{

	@Column(name = "code")
	public String code;
	@Column(name = "name")
	public String name;

	public CityDTO() {
		super();
	}

	public CityDTO(String code, String name) {
		super();
		this.code = code;
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	
}
